{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 请添加自己的实验代码，点击运行查看结果"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig, [ax0, ax1] = plt.subplots(1, 2, constrained_layout=True, figsize=(8, 4))\n",
    "\n",
    "ax0.set_facecolor('0.6')\n",
    "sc = ax0.scatter(solar, temperature, c=dayofyear, s=2, cmap='RdBu_r')\n",
    "ax0.set_xlabel('Solar Radiation $[W\\,m^{-2}]$')\n",
    "ax0.set_ylabel('Temperature $[^oC]$')\n",
    "ax0.set_title('Hourly', loc='left')\n",
    "\n",
    "\n",
    "ax1.set_facecolor('0.6')\n",
    "sc = ax1.scatter(solar_low[::24], temp_low[::24], c=dayofyear[::24], s=4, cmap='RdBu_r')\n",
    "ax1.set_xlabel('Solar Radiation $[W\\,m^{-2}]$')\n",
    "ax1.set_ylabel('Temperature $[^oC]$')\n",
    "ax1.set_title('Smoothed', loc='left')\n",
    "\n",
    "fig.colorbar(sc, ax=[ax0, ax1], shrink=0.6, label='day of year')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig, [ax0, ax1] = plt.subplots(1, 2, constrained_layout=True, figsize=(8, 4))\n",
    "\n",
    "ax0.set_facecolor('0.6')\n",
    "sc = ax0.scatter(solar, temperature, c=dayofyear, s=2, cmap='RdBu_r')\n",
    "ax0.set_xlabel('Solar Radiation $[W\\,m^{-2}]$')\n",
    "ax0.set_ylabel('Temperature $[^oC]$')\n",
    "ax0.set_title('Hourly', loc='left')\n",
    "\n",
    "\n",
    "ax1.set_facecolor('0.6')\n",
    "sc = ax1.scatter(solar_low[::24], temp_low[::24], c=dayofyear[::24], s=4, cmap='RdBu_r')\n",
    "ax1.set_xlabel('Solar Radiation $[W\\,m^{-2}]$')\n",
    "ax1.set_ylabel('Temperature $[^oC]$')\n",
    "ax1.set_title('Smoothed', loc='left')\n",
    "\n",
    "fig.colorbar(sc, ax=[ax0, ax1], shrink=0.6, label='day of year')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
